package com.landscope.issue.mapper;

import com.landscope.issue.controller.api.dto.ProjectListDto;
import com.landscope.issue.controller.api.dto.SimProjectListDto;
import com.landscope.issue.controller.wx.dto.AppletProjectItem;
import com.landscope.issue.controller.wx.dto.AppletProjectListDto;
import com.landscope.issue.entity.Project;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProjectMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Project record);

    int insertSelective(Project record);

    Project selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Project record);

    int updateByPrimaryKey(Project record);

    List<ProjectListDto> findByCodes(@Param("codes") String[] codes);
    Project findByCode(@Param("code") String code);
    List<AppletProjectItem> findAll();
    List<SimProjectListDto> findAllSimple();
}